<?php

namespace app\controller\sys;

use app\BaseController;
use app\model\AdminAccount;
use think\Response;

class Sale extends BaseController
{
    public function save(): Response
    {
        return $this->success($this->app->make(AdminAccount::class)->addOrUpdate());
    }

    public function lst(): Response
    {
        return $this->success($this->app->make(AdminAccount::class)->lst());
    }

    public function detail()
    {
        return $this->success($this->app->make(AdminAccount::class)->detail());
    }
}
